package com.shimao.celnet.payment.model;

import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name = "b_goods_code")
public class BGoodsCode  extends BaseModel implements Serializable {

    /**
     * 国税商品编码
     */
    @NotEmpty(message = "不能为空")
    @Column(name = "ctax_goods_code")
    private String ctaxGoodsCode;

    /**
     * 商品编码
     */
    @Column(name = "goods_code")
    private String goodsCode;

    /**
     * 商品名称
     */
    @Column(name = "goods_name")
    private String goodsName;

    /**
     * 获取国税商品编码
     *
     * @return ctax_goods_code - 国税商品编码
     */
    public String getCtaxGoodsCode() {
        return ctaxGoodsCode;
    }

    /**
     * 设置国税商品编码
     *
     * @param ctaxGoodsCode 国税商品编码
     */
    public void setCtaxGoodsCode(String ctaxGoodsCode) {
        this.ctaxGoodsCode = ctaxGoodsCode;
    }

    /**
     * 获取商品编码
     *
     * @return goods_code - 商品编码
     */
    public String getGoodsCode() {
        return goodsCode;
    }

    /**
     * 设置商品编码
     *
     * @param goodsCode 商品编码
     */
    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    /**
     * 获取商品名称
     *
     * @return goods_name - 商品名称
     */
    public String getGoodsName() {
        return goodsName;
    }

    /**
     * 设置商品名称
     *
     * @param goodsName 商品名称
     */
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }
}